Register the border-image property
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 24 Sep 2010 20:02:39 +0000 (22:02 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Sat, 4 Dec 2010 14:38:16 +0000 (15:38 +0100)
It will contain a 9-sliced image, so it can be rendered as rectangles with any
dimensions.

gtk/gtkstyleset.c

index cd1c8dfb2a3abe53b0332d4326b1c6cc437c889a..59ac9f5fa54d59542c815a4d63766e9b0b53d6e4 100644 (file)
@@ -27,6 +27,7 @@
 #include "gtkprivate.h"
 #include "gtkthemingengine.h"
 #include "gtkanimationdescription.h"
+#include "gtk9slice.h"
 #include "gtkintl.h"
 
 typedef struct GtkStyleSetPrivate GtkStyleSetPrivate;
@@ -90,6 +91,7 @@ gtk_style_set_class_init (GtkStyleSetClass *klass)
   gtk_style_set_register_property ("border", G_TYPE_INT, NULL, NULL);
 
   gtk_style_set_register_property ("background-image", GDK_TYPE_CAIRO_PATTERN, NULL, NULL);
+  gtk_style_set_register_property ("border-image", GTK_TYPE_9SLICE, NULL, NULL);
 
   g_value_init (&val, GTK_TYPE_THEMING_ENGINE);
   g_value_set_object (&val, (GObject *) gtk_theming_engine_load (NULL));